/*
------------------------------------------------------
24.08.09 01:52
lubomir i.ivanov
[ simple version build control ]
writes utc date and time to a file in the form of:
240809:034806(utc)
------------------------------------------------------
*/ 
#include <stdio.h>
#include <time.h>
int main(void)
{    
  //get utc time
  time_t rawtime;
  struct tm * timeinfo;
  char buffer [80];
  time ( &rawtime );
  timeinfo = gmtime ( &rawtime );
  strftime(buffer,80,"%d%m%y:%H%M%S(utc)",timeinfo);
  //write file
  FILE *ofile;
  ofile = fopen("../bin/vbuild", "w");
  fputs(buffer, ofile);
  //stdio
  puts(buffer);
}
